# encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models

class Migration(SchemaMigration):

    def forwards(self, orm):
        
        # Changing field 'Event.logo'
        db.alter_column('core_event', 'logo', self.gf('django.db.models.fields.files.ImageField')(max_length=100))


    def backwards(self, orm):
        
        # Changing field 'Event.logo'
        db.alter_column('core_event', 'logo', self.gf('django.db.models.fields.files.ImageField')(max_length=100, null=True))


    models = {
        'contenttypes.contenttype': {
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
        },
        'core.auth': {
            'Meta': {'object_name': 'Auth'},
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
            'credential_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'provider': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['core.AuthProvider']"}),
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['core.User']"})
        },
        'core.authprovider': {
            'Meta': {'object_name': 'AuthProvider'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
        },
        'core.city': {
            'Meta': {'ordering': "['name']", 'object_name': 'City'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '255'})
        },
        'core.discussion': {
            'Meta': {'object_name': 'Discussion'},
            'allow_guest_message': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'event': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'discussions'", 'to': "orm['core.Event']"}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '255'})
        },
        'core.event': {
            'Meta': {'object_name': 'Event'},
            'city': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['core.City']"}),
            'cost': ('django.db.models.fields.IntegerField', [], {}),
            'current_sum': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
            'current_sum_for_user': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
            'date': ('django.db.models.fields.DateField', [], {}),
            'description': ('django.db.models.fields.TextField', [], {}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'logo': ('django.db.models.fields.files.ImageField', [], {'default': "'/static/img/event_logo.gif'", 'max_length': '100'}),
            'max_participants_count': ('django.db.models.fields.IntegerField', [], {'null': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'owner': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'organized_events'", 'to': "orm['core.User']"}),
            'participants': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'participate_in_events'", 'symmetrical': 'False', 'through': "orm['core.Participation']", 'to': "orm['core.User']"}),
            'status': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
            'strategy': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': "orm['core.Strategy']"})
        },
        'core.facebookcredential': {
            'Meta': {'object_name': 'FacebookCredential'},
            'fb_id': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
        },
        'core.internalcredential': {
            'Meta': {'object_name': 'InternalCredential'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'login': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
            'password_hash': ('django.db.models.fields.CharField', [], {'max_length': '255'})
        },
        'core.message': {
            'Meta': {'object_name': 'Message'},
            'addressee': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'adressee_of_messages'", 'to': "orm['core.User']"}),
            'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'writer_of_messages'", 'to': "orm['core.User']"}),
            'datetime': ('django.db.models.fields.DateTimeField', [], {}),
            'discussion': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['core.Discussion']"}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'text': ('django.db.models.fields.TextField', [], {})
        },
        'core.openidcredential': {
            'Meta': {'object_name': 'OpenIdCredential'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'open_id': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
        },
        'core.participation': {
            'Meta': {'object_name': 'Participation'},
            'event': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['core.Event']"}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'investment': ('django.db.models.fields.IntegerField', [], {}),
            'patron': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['core.User']"})
        },
        'core.strategy': {
            'Meta': {'object_name': 'Strategy'},
            'description': ('django.db.models.fields.TextField', [], {}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '255'})
        },
        'core.user': {
            'Meta': {'object_name': 'User'},
            'avatar': ('django.db.models.fields.files.ImageField', [], {'default': "'/static/img/default_avatar.png'", 'max_length': '100'}),
            'cities': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'citizens'", 'symmetrical': 'False', 'to': "orm['core.City']"}),
            'email': ('django.db.models.fields.EmailField', [], {'default': "''", 'max_length': '255'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'organization_raiting': ('django.db.models.fields.IntegerField', [], {'default': '0', 'max_length': '3'}),
            'participation_raiting': ('django.db.models.fields.IntegerField', [], {'default': '0', 'max_length': '3'})
        },
        'core.vkontaktecredential': {
            'Meta': {'object_name': 'VkontakteCredential'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'vk_id': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
        }
    }

    complete_apps = ['core']
